import Layout from '../pages/layout'
import Login from '../pages/login'
import NotFound from '../pages/404'

const routes = [
  // 公共布局页面
  {
    path: '/',
    element: <Layout />
  },
  // 登录
  {
    path: '/login',
    element: <Login />
  },
  // 404 => * 匹配所有不存在的path地址
  {
    path: '*',
    element: <NotFound />
  }
]

export default routes